package com.yl.auth.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author L
 * @since 2023-07-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("外出申请审批实体类")
public class Waichushenqingshenpi implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @ApiModelProperty("主键Id")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 审批人姓名
     */
    @ApiModelProperty("审批人姓名")
    private String name;

    /**
     * 老人外键
     */
    @ApiModelProperty("老人外键")
    private Integer laorenId;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 软删除
     */
    @ApiModelProperty("软删除")
    @TableField
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty("理由")
    @TableField("reason")
    private String reason;
}
